#include "cmd_video_mode_pri.h"
#include "Printf.h"
#include <string.h>

#define U8  unsigned char
#define U16 unsigned int
#define S8  signed char
#define S16 signed int

extern int stricmp(BYTE *ptr1, BYTE *ptr2);

//==================================================================================
//
//
//
//
//
//==================================================================================
void CheckCmdJushi(void)
{
       extern idata BYTE* argv[7];
	extern U8 data key_code;
	extern U8 idata display_mode;
       Printf("\r\nCheckCmdJushi()\r\n");
       Printf("\r\n%s\r\n",argv[0]);
       Printf("\r\n%s\r\n",strDisp1ChFull01);
       Printf("\r\nlength 1= 0x%2x",(WORD)strlen(argv[0]));
       Printf("\r\nlength 2= 0x%2x",(WORD)strlen(strDisp1ChFull01));

	//---------------- Display 1CHFULL (For Testing) --------------------
	if ( !stricmp( argv[0], (BYTE *)strDisp1ChFull01 )){

		  key_code = CH1_KEY;
	         display_mode = CH1_FULL;
                Printf("\r\nTest UART FULL CH 01\r\n");

            
	}
           
	//---------------- Display 1CHFULL (For Testing) --------------------
	else if ( !stricmp( argv[0], (BYTE *)strDisp1ChFull02 )){

		  key_code = CH2_KEY;
	         display_mode = CH2_FULL;
                Printf("\r\nTest UART FULL CH 02\r\n");
            
	}
           
	//---------------- Display 1CHFULL (For Testing) --------------------
	else if ( !stricmp( argv[0], (BYTE *)strDisp1ChFull03 )){

		  key_code = CH3_KEY;
	         display_mode = CH3_FULL;
                Printf("\r\nTest UART FULL CH 03\r\n");
            
	}
           
	//---------------- Display 1CHFULL (For Testing) --------------------
	else if ( !stricmp( argv[0], (BYTE *)strDisp1ChFull04 )){

		  key_code = CH4_KEY;
	         display_mode = CH4_FULL;
                Printf("\r\nTest UART FULL CH 04\r\n");
            
	}
           
	//---------------- Display 1CHFULL (For Testing) --------------------
	else if ( !stricmp( argv[0], (BYTE *)strDisp1ChFull05 )){

		  key_code = CH5_KEY;
	         display_mode = CH5_FULL;
                Printf("\r\nTest UART FULL CH 05\r\n");
            
	}
           
	//---------------- Display 1CHFULL (For Testing) --------------------
	else if ( !stricmp( argv[0], (BYTE *)strDisp1ChFull06 )){

		  key_code = CH6_KEY;
	         display_mode = CH6_FULL;
                Printf("\r\nTest UART FULL CH 06\r\n");
            
	}
           
	//---------------- Display 1CHFULL (For Testing) --------------------
	else if ( !stricmp( argv[0], (BYTE *)strDisp1ChFull07 )){

		  key_code = CH7_KEY;
	         display_mode = CH7_FULL;
                Printf("\r\nTest UART FULL CH 07\r\n");
            
	}
           
	//---------------- Display 1CHFULL (For Testing) --------------------
	else if ( !stricmp( argv[0], (BYTE *)strDisp1ChFull08 )){

		  key_code = CH8_KEY;
	         display_mode = CH8_FULL;
                Printf("\r\nTest UART FULL CH 08\r\n");
            
	}

}


           
